package sf.service;

import java.io.Serializable;
import java.util.List;

import sf.dao.inf.EmailInf;
import sf.dao.pojo.TEmail;

public class EmailServiceImpl implements EmailServiceInf {
	private EmailInf emailInf;

	public Serializable addEmail(TEmail tEmail) {
		Serializable i = emailInf.add(tEmail);
		return i;
	}
	public List<TEmail> getSendEmails() {
		List<TEmail> emails = emailInf.findAllEmails();
		return emails;
	}

	public TEmail getEmail(int nemailid) {
		TEmail tEmail = emailInf.get(nemailid);
		return tEmail;
	}

	public void updateEmail(TEmail tEmail) {
		emailInf.update(tEmail);
	}
	public EmailInf getEmailInf() {
		return emailInf;
	}

	public void setEmailInf(EmailInf emailInf) {
		this.emailInf = emailInf;
	}



}
